import { ValueOf } from '@/utils/type';

export const CONTENT_STATUS_MENU = {
    DRAFT: 1,
    AUDITING: 2,
    AUDIT_REJECT: 3,
    PUBLISHED: 4,
    DOWN_LINE: 5,
    DELETED: 6,
};

export type CONTENT_STATUS_VALUE = ValueOf<typeof CONTENT_STATUS_MENU>;

export const CONTENT_STATUS_MAP = {
    [CONTENT_STATUS_MENU.DRAFT]: {
        code: CONTENT_STATUS_MENU.DRAFT,
        desc: '草稿',
    },
    [CONTENT_STATUS_MENU.AUDITING]: {
        code: CONTENT_STATUS_MENU.AUDITING,
        desc: '审核中',
    },
    [CONTENT_STATUS_MENU.AUDIT_REJECT]: {
        code: CONTENT_STATUS_MENU.AUDIT_REJECT,
        desc: '审核拒绝',
    },
    [CONTENT_STATUS_MENU.PUBLISHED]: {
        code: CONTENT_STATUS_MENU.PUBLISHED,
        desc: '已发布',
    },
    [CONTENT_STATUS_MENU.DELETED]: {
        code: CONTENT_STATUS_MENU.DELETED,
        desc: '已删除',
    },
};
